package com.sunther.document.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sunther.document.entity.TermEntity;
import com.sunther.idb.common.util.WebResult;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @author admin
 */
public interface TermService extends IService<TermEntity> {
    Page pageList(String keyword, String projectId, Integer speciality, int pageNumber, int pageSize);

    WebResult saveData(TermEntity data, HttpServletRequest request);

    void export(String keyword, String projectId, Integer speciality, HttpServletResponse response) throws Exception;

    TermEntity dtl(Integer id);

    WebResult upload(MultipartFile file, HttpServletRequest request) throws IOException;
}
